package com.xyd.bean;


import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.List;

@Component
@Getter
@Setter
@ToString
@Scope("prototype")
public class Dept implements Serializable {
    @Value("销售部")
    private String dname;
    @Autowired
    private List<Emp> emps;
}
